<div id="selectionUser">

<?php if (!$isOwner): ?>
	<?=form_open('user/changefromuser')?>
		<input alt="Eigene Daten anzeigen" title="Eigene Daten anzeigen" type="image" src="<?=base_url().'resources/images/user.png';?>" />
		<input name="redirect" type="hidden" value="<?=$redirect?>" />
	<?=form_close();?>
<?php endif; ?>

<?=form_open('user/changefromuser')?>
<select name="user" onchange="submit()">
<?php $i=1; foreach($user as $u): ?>

<?php if ($u->id == $fromUser): ?>
	<option selected="selected" value="<?=$u->id?>"><?=$u->name?></option>
<?php else: ?>
	<option value="<?=$u->id?>"><?=$u->name?></option>
<?php endif; ?>

<?php endforeach; ?>
</select>
<input name="redirect" type="hidden" value="<?=$redirect?>" />
<?=form_close();?>
<br/>
</div>